import request from "@/utils/request";

const apis = {
  AllList: "/school/qry",
  Add: "/school/append",
  Updata: "/school/upName",
  Delete: "/school/remove",
};

// 列表
export function getAllSchool(parameter) {
  return request({
    url: apis.AllList,
    method: "post",
    data: parameter
  });
}

// 新增
export function addSchool(parameter) {
  return request({
    url: apis.Add,
    method: "post",
    data: parameter
  });
}

// 更新
export function updataSchool(parameter) {
  return request({
    url: apis.Updata,
    method: "post",
    data: parameter
  });
}

// 删除
export function deleteSchool(parameter) {
  return request({
    url: apis.Delete,
    method: "post",
    data: parameter
  });
}
